﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Storage
{
    using Exceptions;
    using EntityModels;

    #region StorageManager

    /// <summary>
    /// Rapresents the way in which the modules can handle and persist their own data.
    /// </summary>
    public sealed partial class StorageManager
    {
        #region GetDailyStatisticsByDate

        /// <summary>
        /// Returns the Statistics related with the Datetime in input.
        /// </summary>
        public DailyStatistics GetDailyStatisticsByDate(DateTime time)
        {
            return Entities.DailyStatistics.First(s => s.Date == time);
        }

        #endregion
    }

    #endregion
}
